package org.stars.dao.sqlmapper.typehandlers;

public enum TypeHandlerAttribute {
	HANDLER("handler");
	
	private String value;
	
	private TypeHandlerAttribute(String value)
	{
		this.value=value;
	}
	
	/**
	 * Parse a string to detect associated value of enumeration. If not found,
	 * return null.
	 * 
	 * @param
	 * 		input
	 * @return
	 * 		TypeHandlerAttribute value or <code>null</code>.
	 */
	public static TypeHandlerAttribute parse(String input)
	{
		for (TypeHandlerAttribute item: TypeHandlerAttribute.values())
		{
			if (item.value.equalsIgnoreCase(input))
			{
				return item;
			}
		}
		
		return null;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
